Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump unfetch from 3.1.2 to 4.2.0 #5468

Merged
merged 1 commit into from
Nov 16, 2022

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 7, 2022

Bumps unfetch from 3.1.2 to 4.2.0.

Release notes

Sourced from unfetch's releases.

4.2.0

Please make sure to also update to isomorphic-unfetch@3.1.0, which includes a security fix for node-fetch. (thanks @​sakito21)

4.1.0

4.0.1

Quick publishing fix.

4.0.0

🦄 Small breaking change for awesome ponyness:

  • unfetch is now a pure ponyfill.
  • unfetch/polyfill is now the polyfill version (even smaller than the ponyfill!)
  • All modules are shipped in all formats, and the polyfill is now < 500b.
  • Also a little bugfix for IE11 (#85, thanks @​khusa)

TL;DR: require('unfetch') no longer returns window.fetch when it exists. For that, use unfetch/polyfill.

This change makes unfetch lovely to use as a polyfill from HTML:

<script src="https://unpkg.com/unfetch/polyfill"></script>
<!-- that's it! -->
<script>foo = await fetch('/foo.json')</script>

Otherwise, if you're using Unfetch and bundling your code, continue as you were before:

if (!self.fetch) self.fetch = require('unfetch');
// or simply:
import 'unfetch/polyfill';

Important - the one thing to avoid:

Since unfetch is a proper ponyfill, it will now overwrite fetch even in supported browsers if you do the following

// never do this!
window.fetch = require('unfetch');
Commits
  • 8160c81 4.2.0
  • f2aa730 build tweaks
  • fb03f90 fix tests
  • 51de947 Merge pull request #121 from 0x80/topic/export-request-init-type
  • 1583aad Merge branch 'master' into topic/export-request-init-type
  • aff2b9d Merge pull request #117 from Andarist/better-types
  • 9f2ca62 Merge branch 'master' into better-types
  • 7d00e05 Merge pull request #135 from developit/no-mjs
  • 453bc11 Merge branch 'master' into no-mjs
  • 21a15bf Merge pull request #138 from simon04/polyfill-ie11
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Nov 7, 2022
@changeset-bot
Copy link

changeset-bot bot commented Nov 7, 2022

⚠️ No Changeset found

Latest commit: 81c3513

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@codesandbox-ci
Copy link

codesandbox-ci bot commented Nov 7, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 81c3513:

Sandbox Source
react-codesandboxer-example Configuration

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/unfetch-4.2.0 branch from d50a5b3 to 707072a Compare November 14, 2022 21:44
Bumps [unfetch](https://github.com/developit/unfetch) from 3.1.2 to 4.2.0.
- [Release notes](https://github.com/developit/unfetch/releases)
- [Commits](developit/unfetch@3.1.2...4.2.0)

---
updated-dependencies:
- dependency-name: unfetch
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/unfetch-4.2.0 branch from 707072a to 81c3513 Compare November 16, 2022 01:56
@lukebennett88 lukebennett88 merged commit 34f9a1e into master Nov 16, 2022
@lukebennett88 lukebennett88 deleted the dependabot/npm_and_yarn/unfetch-4.2.0 branch November 16, 2022 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant